#include "mainwindow.h"
#include <QApplication>
#include <QFile>
/******************************************************************************
 *
 * @file       main.cpp
 * @brief      EHS CHAT
 *
 * @author     刘博
 * @date       2024/11/28
 * @history
 *****************************************************************************/

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    QFile qss(":/style/stylesheet.qss");
    if(qss.open(QFile::ReadOnly))
    {
        qDebug() << "打开了QSS";
        QString stylesheet = QLatin1String(qss.readAll());
        a.setStyleSheet(stylesheet);
        qss.close();
    }
    else
    {
        qDebug() << "open failed";
    }
    MainWindow w;
    w.show();
    return a.exec();
}
